# coding: utf-8

__author__ = 'weixin.yuan'

# 车次列表页
elements = {
    "补票按钮": ("predicate", 'name LIKE "上车*"'),
    "火车按钮": ("xpath", '//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[3]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeScrollView[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]'),
    "中转按钮": ("xpath", '//XCUIElementTypeApplication[1]/XCUIElementTypeWindow[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[3]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[1]/XCUIElementTypeScrollView[1]/XCUIElementTypeOther[1]/XCUIElementTypeOther[2]'),
    "飞机按钮": ("predicate", 'name LIKE "飞机 ¥*"'),
    "日历按钮": ("name", ' 日历 '),
    "旅行耗时按钮": ("name", '耗时  '),
    "出发时间按钮": ("name", '出发  '),
    "高铁动车按钮": ("name", '高铁动车'),
    "综合筛选按钮": ("name", '筛选'),

    "zonghe_filter": {
        "二等座按钮": ("name", '二等座'),
        "一等座按钮": ("name", '一等座'),
        "商务座按钮": ("name", '商务座'),
        "二等卧按钮": ("name", '二等卧'),
        "一等卧按钮": ("name", '一等卧'),
        "无座按钮": ("name", '无座'),
        "硬座按钮": ("name", '硬座'),
        "硬卧按钮": ("name", '硬卧'),
        "软卧按钮": ("name", '软卧'),
        "高级软卧按钮": ("name", '高级软卧'),
    },
    "确定按钮": ("name", '确定'),
}


